﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MyPIctureBox
{
    public partial class UserControl1: UserControl
    {
        public UserControl1()
        {
            InitializeComponent();

            //string path = "E:\\考核资料\\Halcon学习考核\\Temp5.bmp";
            //this.label1.Text = path;
            //this.pictureBox1.Load(path);
        }

        public void SetImage(string path ,Image img)
        {
            this.label1.Text = path;
            this.pictureBox1.Image = img;
        }

    }
}
